package com.bcst.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.StringJoiner;

/**
 * @description 欢迎关注公众号 编程识堂,每日更新技术相关文章，关注我不迷路
 * @author 小堂
 * @date 2023/8/25 0025 15:26
 * @description
 */
@TableName(value = "user")
public class UserVo implements Serializable {

    private Long id;

    @TableField(value = "username")
    private String name;

    private String phone;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", UserVo.class.getSimpleName() + "[", "]")
                .add("id=" + id)
                .add("name='" + name + "'")
                .add("phone='" + phone + "'")
                .toString();
    }
}
